#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class A
{
public:

	A()
		:_a(1)
		, _p(new int[3] {1,2,3})
	{
		_size = _a;
		cout << "A()" << endl;
	}

	~A()
	{
		delete[] _p;
		_p = nullptr;
		_size = 0;
		cout << "~A()" << endl;
	}
private:
	int _a;
	int* _p;
	size_t _size;
};

int main()
{
	A a;
	return 0;
}